package cn.cjp.day02;

//要在class外面导包
import java.util.Scanner;

public class UseScanner {
    public static void main(String[] args2dsd) {
    //创建
   Scanner sc = new Scanner(System.in);

    //使用
    int numone = sc.nextInt();
    String str = sc.next();
    System.out.println(numone+str);

    //匿名对象
        new Student().getName();
        int numtwo = new Scanner(System.in).nextInt();

    //一般写法
        Scanner sc1 = new Scanner(System.in);
        mothod(sc1);

        //匿名写法
        mothod(new Scanner(System.in));

    }
    public static void mothod(Scanner sc){
        System.out.println(sc.next());
    }
}
